﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Shoppingcart.aspx.cs" Inherits="Webbshop.Shoppingcart" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <h1><asp:Label ID="lblTitle" runat="server" Text="Varukorg" 
                meta:resourcekey="lblTitleResource1" /></h1>
        <p>
            <asp:Label ID="lblIntroduction" runat="server" 
                Text="Här kan du granska dina varor och gå vidare till Kassan." 
                meta:resourcekey="lblIntroductionResource1" />
        </p>
        <p>
            <asp:Label ID="lblNoProducts" runat="server" Font-Italic="True" 
                meta:resourcekey="lblNoProductsResource1" />
            <asp:DataList ID="dataCart" runat="server" OnItemCommand="dataCart_ItemCommand" 
                meta:resourcekey="dataCartResource1">
                <ItemTemplate>
                    <%# Eval("key.Name") %> <%# Eval("value") %>  <asp:button ID="btnDelete" 
                        runat="server" Text="Ta bort" CommandName="Delete" 
                        meta:resourcekey="btnDeleteResource1" />
                </ItemTemplate>
            </asp:DataList>
        </p>
        <p>
            <asp:Button ID="btnToCheckout" runat="server" Text="Till Kassan" 
                PostBackUrl="~/Checkout.aspx" meta:resourcekey="btnToCheckoutResource1" />
        </p>
    </div>
</asp:Content>
